package ru.uskov.trainer.datastore;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserIdentifyer implements Serializable{
  /**
   * 
   */
  private static final long serialVersionUID = 1L;

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Long id;
  
  @Persistent
  private String pwd;
  
  public UserIdentifyer(String pwd) {
    this.pwd = pwd;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getId() {
    return id;
  }
  
  public String getPwd() {
    return pwd;
  }
  @Override
  public String toString() {    
    return id + " " + pwd;
  }
  
}
